<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<HTML>
 <HEAD>
 
  <TITLE> MyHome.jsp </TITLE>
  <meta charset="UTF-8">

<style>
#main{
	margin:auto;
	width:100%;
}
#login,#bot{
	width:100%;
	height:35px;
}
#left{
	vertical-align:top;
	width:15%;
	margin:0px;
	display:inline-block;
}
#contents{
	width:73%;
	margin:0px;
	vertical-align:top;
	display:inline-block;
}
#right{
	width:1%;
	margin:0px;
	display:inline-block;
}
</style>


 </HEAD>

 <BODY>
 <% 
request.setCharacterEncoding("utf-8");

String inc_left = null;
String inc_right = null;
String inc_content = null;
String inc_top = null;
String temp = null;

//---------------------------------------------------------
//왼쪽(aside)
//---------------------------------------------------------
temp = request.getParameter("inc_left");  // 파라미터변수명 설정 = 요청된 파라미터에서 inc_left에 담겨져있는 값을 가져오는작업

if(temp == null || temp == ""){       // 1) 서브content가 링크된 경우
	inc_left = (String)session.getAttribute("inc_left");
}else{
	session.setAttribute("inc_left", temp);
	inc_left = temp;
}
if(inc_left == null) inc_left ="none.jsp";

//---------------------------------------------------------
//오른쪽 광고(aside)
//---------------------------------------------------------
temp = request.getParameter("inc_right");
if(temp == null || temp == ""){       
	inc_right = (String)session.getAttribute("inc_right");
}else{
	session.setAttribute("inc_right", temp);
	inc_right = temp;
}
if(inc_right == null) inc_right ="none.jsp";



//---------------------------------------------------------
//컨텐츠 내용
//---------------------------------------------------------
temp = request.getParameter("inc_content");
if(temp == null && temp == ""){ 
	inc_content = (String)session.getAttribute("inc_content");
 }else{
	 session.setAttribute("inc_content", temp);
	 inc_content = temp;
 }
if(inc_content == null) inc_content = "none.jsp";
/* "../background/ground1.html";
 */
%>
<div id='main'>

<div id ='login'> 													<!-- 로그인 폼 -->
	<%@include file='Loginform.jsp' %>
</div>
<div id ='menu'>													<!-- 메뉴 폼 -->
	<%@include file='topMenu2.jsp' %>
</div>

<div id='center'>
		<div id='left'>												<!-- 왼쪽 폼 -->
			<jsp:include page="<%=inc_left%>"/>
		</div>
		<div id='contents'>											<!-- 컨텐츠 폼 -->
			<jsp:include page="<%=inc_content%>"/>
		</div>
		<%-- <div id='right'>											<!-- 광고 폼 -->
			<jsp:include page="<%=inc_right%>"/>
		</div> --%>
	
	</div>

 <hr/>
  <div id='bot'>
    <%@include file='bot.jsp' %>
  </div>
  
  </div>
  
  

	 	
 </BODY>
</HTML>